<?
include("../lib/config.php");
$username 	= $HTTP_GET_VARS['u'];

include("../header.php");
?>
<script type="text/javascript">
	function Validate(){
		if(document.F.username.value == "")
		{
			alert("Field : Username tidak boleh kosong ...");
			document.F.username.focus();
			return false;
		}
		if(document.F.password.value == "")
		{
			alert("Field : Password tidak boleh kosong ...");
			document.F.password.focus();
			return false;
		}
		document.F.submit();
		
	}
</script>
</head>
<table width="100%" class="no_border">
 <tr>
  <td colspan="2">
	<table width="100%" style="border:none;">
	<tr>
	 <td colspan="2" class="line_bottom">&nbsp;&nbsp;<b>TABEL USER</b></td>
	</tr>
	<tr>
	</table>
  </td>
 </tr>
 <tr>
  <td>
  <form name="F" action="../lib/update.php" method="post">
     <table cellpadding="4" cellspacing="1" width="100%">
      <tr>
       <td colspan="2">
       <fieldset><legend>Reset Password</legend>
		<table>
         <tr>
          <td width="200">Username</td>
          <td><input type="text" name="username" value="<?=$username?>" readonly="" /> <span class="required">*</span></td>
         </tr>
         <tr>
          <td>Password</td>
          <td><input type="password" name="password" value="<?=$row[password]?>"  /> <span class="required">*</span></td>
         </tr>
         <tr>
          <td>&nbsp;</td>
          <td>
          <input type="hidden" name="cat" value="reset_pass" />
          <input type="button"  value="Batal" class="button" onclick="Javascript:history.back();" /> <input type="button" value="Reset Password" onclick="Validate();" class="button" /> </td>
         </tr>
        </table>
       </fieldset>
       </td>
      </tr>
     </table>
     </form>
  </td>
</tr>
</table>
<?
echo"</div>
	  </td>
	   </tr>
	    </table>
";
include("../menu.php");
?>